package com.pojo;

/**
 * @author AD
 *
 */
public class OrdDtlId implements java.io.Serializable {
	private Long unitId;
	private String ordNum;
	private Long prodId;
	
	public OrdDtlId() {
		
	}
	
	public OrdDtlId(Long unitId, String ordNum, Long prodId) {
		super();
		this.unitId = unitId;
		this.ordNum = ordNum;
		this.prodId = prodId;
	}

	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	public String getOrdNum() {
		return ordNum;
	}

	public void setOrdNum(String ordNum) {
		this.ordNum = ordNum;
	}

	public Long getProdId() {
		return prodId;
	}

	public void setProdId(Long prodId) {
		this.prodId = prodId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((ordNum == null) ? 0 : ordNum.hashCode());
		result = prime * result + ((prodId == null) ? 0 : prodId.hashCode());
		result = prime * result + ((unitId == null) ? 0 : unitId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrdDtlId other = (OrdDtlId) obj;
		if (ordNum == null) {
			if (other.ordNum != null)
				return false;
		} else if (!ordNum.equals(other.ordNum))
			return false;
		if (prodId == null) {
			if (other.prodId != null)
				return false;
		} else if (!prodId.equals(other.prodId))
			return false;
		if (unitId == null) {
			if (other.unitId != null)
				return false;
		} else if (!unitId.equals(other.unitId))
			return false;
		return true;
	}
	
	
}
